package com.gc.server.enums;

import lombok.Getter;


/**
 * ${comments}
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Mon Aug 26 16:58:11 CST 2019
 */
@Getter
public enum AccountRecordStatusEnum {


    WAIT(0, "未完成"),


    DONE(1, "已完成");




    int index;
    String value;

    AccountRecordStatusEnum(int index, String value) {
        this.index = index;
        this.value = value;
    }

    public static String indexOf(int idx) {
        return AccountRecordStatusEnum.values()[idx].getValue();
    }

    public static void main(String[] args) {
        System.out.println(AccountRecordStatusEnum.indexOf(0));
    }

}
